package org.springframework.messaging.handler;

import org.springframework.lang.Nullable;
import org.springframework.messaging.Message;

public interface MessageCondition<T> {

	T combine(T other);

	@Nullable
	T getMatchingCondition(Message<?> message);

	int compareTo(T other, Message<?> message);

}
